package com.larissa.android.quiz;

import android.app.Application;
import android.util.Log;

import java.util.ArrayList;
import java.util.List;

public class QuizApplication extends Application {

    private MainRepository mainRepository;
    private final String TAG="QuizApplication";

    public void onCreate()
    {
        super.onCreate();
        Log.d(TAG, "onCreate() called");
        MainRepository.initialize(this);
        mainRepository=MainRepository.getInstance();
        initializeList();
    }

    private void initializeList()
    {
        List<Question> historyQuestions = new ArrayList<>();

//        historyQuestions.add(new Question("", ""));

        mainRepository.historyQuestions.addAll(historyQuestions);
    }
}
